<%@ taglib uri="http://java.sun.com/jsp/jstl/core" prefix="c" %>
<%@ taglib prefix="peoit" tagdir="/WEB-INF/tags" %>
<%@ page language="java" contentType="text/html; charset=UTF-8" pageEncoding="UTF-8"%>
<peoit:include>
	<div class="pd-20">
		<form action="<c:url value="/admin/banner/add"/>" method="post" class="form form-horizontal" id="form-banner-add">



			<div class="row cl">
				<label class="form-label col-3"><span class="c-red">*</span>标题：</label>
				<div class="formControls col-7">
					<input type="text" class="input-text" placeholder="标题" id="user-name" name="title" datatype="*" value="${viewData.title}"   nullmsg="标题不能为空">
				</div>
					<%--<div class="col-4" style="color: red;">必须是英文字母加者下划线</div>--%>
			</div>
			<div class="row cl">
				<label class="form-label col-3"><span class="c-red">*</span>类型：</label>
				<div class="formControls col-7">
					<input type="text" placeholder="" name="type" autocomplete="off" value="${viewData.type == 'act'?'活动':'项目'}"  class="input-text" >
				</div>
				<div class="col-4"> </div>
			</div>

			<div class="row cl" id="proNum" >
				<label class="form-label col-3"><span class="c-red">*</span>项目编号：</label>
				<div class="formControls col-7">
					<input type="text" class="input-text" placeholder="项目编号" name="proNum"  value="${viewData.proNum}"  nullmsg="项目编号不能为空">
				</div>
					<%--<div class="col-4" style="color: red;">必须是英文字母加者下划线</div>--%>
			</div>


			<div class="row cl">
				<label class="form-label col-3"><span class="c-red">*</span>城市：</label>
				<div class="formControls col-7">
					<input type="text" placeholder="" name="city" autocomplete="off" value="${viewData.city	}"  class="input-text" >
				</div>
				<div class="col-4"> </div>
			</div>

			<div class="row cl">
				<label class="form-label col-3"><span class="c-red">*</span>URL：</label>
				<div class="formControls col-7">
					<input type="text"  name="url" value="${viewData.url}"  autocomplete="off"  class="input-text" >
				</div>
				<div class="col-4"> </div>
			</div>

			<div class="row cl">
				<label class="form-label col-3"><span class="c-red">*</span>描述：</label>
				<div class="formControls col-7">
					<input type="text" placeholder="请输入描述" name="description" autocomplete="off" value="${viewData.description	}"  class="input-text" >
				</div>
				<div class="col-4"> </div>
			</div>


			<div class="row cl">
				<label class="form-label col-3"><span class="c-red">*</span>项目图片：</label>
				<div class="formControls col-7">
					<div class="fileupload fileupload-new" data-provides="fileupload">
						<div class="fileupload-new thumbnail" style="width: 433px; height: 250px;">
							<img src="<c:url  value="${viewData.path}"/> " alt="">
						</div>
						<%--<div class="fileupload-preview fileupload-exists thumbnail" style="max-width: 500px; max-height: 450px; line-height: 20px;"></div>--%>
					</div>
				</div>
			</div>

			<div class="row cl">
				<div class="col-9 col-offset-3">
					<%--<input class="btn btn-primary radius" type="submit" value="&nbsp;&nbsp;提交&nbsp;&nbsp;">--%>
				</div>
			</div>
		</form>
	</div>
</peoit:include>
<script type="text/javascript">
	$(function(){
		//表单验证ajax提交
		$("#form-banner-add").Validform({
			tiptype:3,
			callback:function(form){
				$("#form-banner-add").ajaxSubFromDialog(this);
				location.reload(true);
				return false;
			}
		});

		$('.skin-minimal input').iCheck({
			checkboxClass: 'icheckbox-blue',
			radioClass: 'iradio-blue',
			increaseArea: '20%'
		});
	});
</script>